/**
 * File: 
 * Proj/Lab:
 * Author:
 * Date:
 * Section:
 * Email:
 */
package proj;

import java.util.ArrayList;

/**
 * @author Ben
 *
 */
public class Plan
{
	private String planName;
	private ArrayList<Semester> semesters = new ArrayList<Semester>();
	
	public Plan(Plan clonee)
	{
		planName = clonee.getPlanName();
		semesters = clonee.getSemesters();
	}
	
	public Plan(String name)
	{
		planName = name;
	}
	
	public Plan(String name, ArrayList<Semester> mySemesters)
	{
		planName = name;
		semesters = mySemesters;
	}
	
	public String getPlanName() 
	{
		return new String(planName);
	}

	public void setPlanName(String name) 
	{
		this.planName = name;
	}

	public ArrayList<Semester> getSemesters() 
	{
		ArrayList<Semester> newSemesters = new ArrayList<Semester>();
		for(int i = 0; i != semesters.size(); i++)
		{
			newSemesters.add(new Semester(semesters.get(i)));
		}
		
		return newSemesters;
	}

	public void setSemesters(ArrayList<Semester> mySemesters) 
	{
		this.semesters = mySemesters;
	}
}
